package br.odb.bzk3.android;

import br.odb.libscene.ActorConstants;
import br.odb.libscene.SceneObject;
import bzk3.geometry.ObjMesh;

public class Projectile extends GameActor {

	public Projectile(GameActor gameActor) {
		super(gameActor);

		this.candelas = 64;

//		ObjMesh obj = new ObjMesh();
//		obj.internalize(
//				EngineActivity.getInstanceResources().openRawResource(
//						R.raw.torpedo), null);
//		setMesh(obj);
//		obj.moveTo(getPosition());
		playable = true;
	}

	@Override
	public void hit(SceneObject object) {
		// / setAlive( false );
	}

	@Override
	public void tick() {
		super.tick();
		if (isAlive())
			consume(ActorConstants.MOVE_N);
	}

	@Override
	public void undo() {
		super.undo();
	}
}
